
package com.shop.cloud.live.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.NotNull;
import io.swagger.v3.oas.annotations.media.Schema;


/**
 * 直播间商品
 *
 * @author
 * @date 2025-01-10 11:42:58
 */
@Data
@TableName("live_room_spu")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "直播间商品")
public class LiveRoomSpu extends Model<LiveRoomSpu> {
    private static final long serialVersionUID=1L;

    /**
     * PK
     */
    @TableId(type = IdType.ASSIGN_ID)
    @NotNull(message = "PK不能为空")
    @Schema(description = "PK")
    private String id;
    /**
     * 所属租户
     */
    @NotNull(message = "所属租户不能为空")
    @Schema(description = "所属租户")
    private String tenantId;
    /**
     * 商品id
     */
    @NotNull(message = "商品id不能为空")
    @Schema(description = "商品id")
    private String spuId;
    /**
     * 房间id
     */
    @NotNull(message = "房间id不能为空")
    @Schema(description = "房间id")
    private String roomId;
    /**
     * 讲解状态 0未讲解 1讲解中
     */
    @Schema(description = "讲解状态 0未讲解 1讲解中")
    private String explainStatus;

}
